package com.example.musicproject_b;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
//确保在启动类中的@ComponentScan注解包含了所有需要扫描的模块的包路径。
@ComponentScan(basePackages = {
        "com.example.service",
        "com.example.common",
        "com.example.common.b_pojo",
        "com.example.dao",
        "com.example.musicproject_b"
})
@MapperScan(basePackages = "com.example.dao")
public class MusicprojectBankApplication {

    public static void main(String[] args) {
        SpringApplication.run(MusicprojectBankApplication.class, args);
    }

}
